package com.oocl.customersystem.service.impl;

import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;

import com.oocl.customersystem.service.UrlConnection;

public class UrlConnectionImpl implements UrlConnection{

	@Override
	public HttpURLConnection getHttpConnection(String uri) throws IOException {
		
		URL url = new URL(uri);
		URLConnection conn = url.openConnection();
		HttpURLConnection httpconn = (HttpURLConnection) conn;
//		httpconn.setRequestProperty("Accept-Encoding", "identity");
//		httpconn.connect();
		return httpconn;
	}

}
